/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package net.jdcloud.HufuDatacubeService.model;

import net.jdcloud.HufuDatacubeService.model.resumptionperfpagepost.*;
import com.jdcloud.sdk.apim.service.JdcloudRequest;
import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import net.jdcloud.HufuDatacubeService.model.resumptionperfpagepost.ResumptionPerfPagePOSTBody;
import java.io.Serializable;
import java.io.IOException;
import javax.xml.bind.annotation.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * ResumptionPerfPagePOSTRequest
 */
@XmlRootElement(name = "resumptionPerfPagePOST_request")
@XmlAccessorType(XmlAccessType.FIELD)

public class ResumptionPerfPagePOSTRequest extends JdcloudRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElement(name = "user_pin")
    @SerializedName("user_pin")
    @QueryParameter
    private String userPin = null;

    @XmlElement(name = "resumptionPerfPagePOSTBody")
    @SerializedName("resumptionPerfPagePOSTBody")
    @BodyParameter
    private ResumptionPerfPagePOSTBody resumptionPerfPagePOSTBody = null;

    public ResumptionPerfPagePOSTRequest userPin(String userPin) {
        this.userPin = userPin;
        return this;
    }

    /**
     * 用户pin
     * @return userPin
    **/

    public String getUserPin() {
        return userPin;
    }

    public void setUserPin(String userPin) {
        this.userPin = userPin;
    }

    public ResumptionPerfPagePOSTRequest resumptionPerfPagePOSTBody(ResumptionPerfPagePOSTBody resumptionPerfPagePOSTBody) {
        this.resumptionPerfPagePOSTBody = resumptionPerfPagePOSTBody;
        return this;
    }

    /**
     * 
     * @return resumptionPerfPagePOSTBody
    **/

    public ResumptionPerfPagePOSTBody getResumptionPerfPagePOSTBody() {
        return resumptionPerfPagePOSTBody;
    }

    public void setResumptionPerfPagePOSTBody(ResumptionPerfPagePOSTBody resumptionPerfPagePOSTBody) {
        this.resumptionPerfPagePOSTBody = resumptionPerfPagePOSTBody;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ResumptionPerfPagePOSTRequest resumptionPerfPagePOSTRequest = (ResumptionPerfPagePOSTRequest) o;
        return Objects.equals(this.userPin, resumptionPerfPagePOSTRequest.userPin) &&
        Objects.equals(this.resumptionPerfPagePOSTBody, resumptionPerfPagePOSTRequest.resumptionPerfPagePOSTBody);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userPin, resumptionPerfPagePOSTBody);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ResumptionPerfPagePOSTRequest {\n");
        
        sb.append("    userPin: ").append(toIndentedString(userPin)).append("\n");
        sb.append("    resumptionPerfPagePOSTBody: ").append(toIndentedString(resumptionPerfPagePOSTBody)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
          return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}

